<?php 
if(empty($this->page)){
    $this->page = 'page';
}
if ($this->pageCount>1): ?>
<div class="pagin">
    <center>
      <ul>
      
     <!-- First page link -->
     <li>
      <?php if (isset($this->first) && ($this->first != '1')): ?>     
        <a href="<?php echo $this->url(array($this->page => $this->first)); ?>">
          First
        </a>     
      <?php endif; ?>     
      </li>    
      
      <!-- Previous page link -->
      <?php if (isset($this->previous)) { ?>
      <li>
        <a href="<?php echo $this->url(array($this->page => $this->previous)); ?>">
          &laquo;
        </a>
      </li>
      <?php } ?>


      <!-- Numbered page links -->
      <?php foreach ($this->pagesInRange as $page): ?>
        <?php if ($page != $this->current): ?>
      <li>
          <a href="<?php echo $this->url(array($this->page => $page)); ?>">
              <?php echo $page; ?>
          </a></li>
        <?php else: ?>
      <li class="cur"><a href="#"><?php echo $page; ?></a></li>
 
        <?php endif; ?>
      <?php endforeach; ?>
      <!-- Next page link -->
      <?php if (isset($this->next)){ ?>
      <li>
        <a href="<?php echo $this->url(array($this->page => $this->next)); ?>">
         &raquo;
        </a></li>
      <?php } ?>
        
      
      <!-- Last page link -->
      <li>
      <?php if (isset($this->last) && ($this->last != $this->pageCount) ): ?>
        <a href="<?php echo $this->url(array($this->page => $this->last)); ?>">
          Last
        </a>
      <?php endif; ?>
      </li>

      </ul>
    <br clear="both" />
    </center>
    
</div>
<?php endif; ?>